<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link href="${pageContext.request.contextPath}/mycss/font.css"
	rel="stylesheet">
<script type="text/javascript">
	function setDateTime() {
		var date = new Date();
		var day = date.getDay();
		var week;
		switch (day) {
		case 0:
			week = "星期日";
			break;
		case 1:
			week = "星期一";
			break;
		case 2:
			week = "星期二";
			break;
		case 3:
			week = "星期三";
			break;
		case 4:
			week = "星期四";
			break;
		case 5:
			week = "星期五";
			break;
		case 6:
			week = "星期六";
			break;
		}
		var today = date.getFullYear() + "年" + (date.getMonth() + 1) + "月" //定义一个时间变量
		+ date.getDate() + "日  " + week + " " + date.getHours() + ":"
		+ date.getMinutes() + ":" + date.getSeconds();
		document.getElementById("today").innerHTML = today; //把id=today的标签赋予时间属性
	}
	window.setInterval("setDateTime()", 1000);
</script>
<style type="text/css">
.topdiv {
	width:1040px;
  min-height: 40px;
  padding-right: 0px;
  background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
  background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
  background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
  background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
  background-repeat: repeat-x;
  border: 1px solid #d4d4d4;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
  *zoom: 1;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
     -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
          box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%); 
}
</style>

</head>

<body>
	<div class="row-fluid">
		<div class="span12">
			<div class="head">
				<div class="headLeft">
					<span class="link link--titleFont" href="#" data-letters="同行互评系统">同行互评系统</span>
				</div>
				<br>
				<div class="headRight">
					欢迎管理员： <font color="red"><strong><%=session.getAttribute("username")%></strong></font>&nbsp;&nbsp;&nbsp;
					<i class="icon-time"></i>&nbsp;&nbsp;<font id="today"></font>
					<!-- 显示时间 -->
				</div>
			</div>
		</div>
	</div>
	<div class="navbar">
		<!-- 导航栏转横向 -->
			<div class="topdiv">
			<ul class="nav" style="width:1110px;float:left;">
				<li><a href="userMain.jsp"><i class="icon-home"></i>&nbsp;<font size="2px">系统首页</font></a></li>
				<li><a href="pre?method=addStudent"><i class="icon-pencil"></i>&nbsp;<font size="2px">添加学生信息</font>
				</a></li>
				<li><a href="pre?method=addGroup"><i
						class="icon-pencil"></i>&nbsp;<font size="2px">添加项目小组 </font></a></li>
				<li><a href="showAllStudents"><i class="icon-book"></i>&nbsp;<font size="2px">查看学生信息</font>
				</a></li>
				<li><a href="showAllProData"><i class="icon-book"></i>&nbsp;<font size="2px">查看项目小组</font>
				</a></li>
				<li><a href="pre?method=updateUserPassword"><i
						class=" icon-cog"></i>&nbsp;<font size="2px">修改管理密码</font></a></li>
				<li><a onclick="logoutcheck()"><i class="icon-user"></i>&nbsp;<font size="2px">退出系统</font></a></li>
			</ul>
		</div>
	</div>
</body>
</html>
